package com.sxdz.exception

import groovy.transform.CompileStatic
import groovy.transform.TypeChecked
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * Created by zb on 2015/6/12.
 */
@CompileStatic
@TypeChecked
@RestController
class ErrorAction {

    /**
     * ajax错误页面处理
     * @param errCode
     * @return
     */
    @RequestMapping(value="error/{errCode}")
    error(@PathVariable("errCode") String errCode){
        [resCode: errCode]
    }
}
